class AdminApplicationController < ApplicationController
  before_action :authenticate_login
  WillPaginate.per_page = 10
  def authenticate_login
    unless cookies.has_key? :LoginUserInfo
      redirect_to '/admin/operator_sign_in'
    else
      cookies[:LoginUserInfo]={
          value: cookies[:LoginUserInfo],
          expires: 30.minutes.from_now
      }
    end
  end
end